<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%tmp_upload_multi_media}}".
 *
 * @property int $id
 * @property string $idcard
 * @property string $name
 * @property string $url
 * @property int $o_fcustid
 * @property int $at_id
 * @property int $status
 */
class TmpUploadMultiMedia extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%tmp_upload_multi_media}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['idcard', 'url'], 'required'],
            [['o_fcustid', 'at_id', 'status'], 'integer'],
            [['idcard'], 'string', 'max' => 30],
            [['name'], 'string', 'max' => 20],
            [['url'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'idcard' => Yii::t('app', 'Idcard'),
            'name' => Yii::t('app', 'Name'),
            'url' => Yii::t('app', 'Url'),
            'o_fcustid' => Yii::t('app', 'O Fcustid'),
            'at_id' => Yii::t('app', 'At ID'),
            'status' => Yii::t('app', 'Status'),
        ];
    }
}
